package main

import (
	"fmt"
	"time"
)

func main() {
	fmt.Println("当前时间是：", time.Now())
	ticker := time.NewTicker(1 * time.Second)

	go func() {
		for {
			nowTime := <-ticker.C
			fmt.Println("nowTime:", nowTime)
		}
	}()

	for {
	}

}
